package com.thiswhyme.log.core;

/**
 * @Description: 日志对象
 * Created by thiswhyme on 2020/10/11
 */
public class OperationLog {

    /**
     * 客户端请求IP
     */
    private String ip;

    /**
     * 请求url
     */
    private String apiUrl;

    /**
     * 操作用户的ID
     */
    private Long userId;

    /**
     * 请求耗时
     */
    private Long consumingTime;

    /**
     * 简单日志的标题
     */
    private String title;

    /**
     * 访问接口类名称和方法
     */
    private String apiClassMethodName;

    /**
     * 请求参数体 (JSON格式)
     */
    private String reqParam;

    /**
     * 请求返回体
     */
    private Object resp;

    public String getIp() {
        return ip;
    }

    public OperationLog setIp(String ip) {
        this.ip = ip;
        return this;
    }

    public String getApiUrl() {
        return apiUrl;
    }

    public OperationLog setApiUrl(String apiUrl) {
        this.apiUrl = apiUrl;
        return this;
    }

    public Long getUserId() {
        return userId;
    }

    public OperationLog setUserId(Long userId) {
        this.userId = userId;
        return this;
    }

    public Long getConsumingTime() {
        return consumingTime;
    }

    public OperationLog setConsumingTime(Long consumingTime) {
        this.consumingTime = consumingTime;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public OperationLog setTitle(String title) {
        this.title = title;
        return this;
    }

    public String getApiClassMethodName() {
        return apiClassMethodName;
    }

    public OperationLog setApiClassMethodName(String apiClassMethodName) {
        this.apiClassMethodName = apiClassMethodName;
        return this;
    }

    public String getReqParam() {
        return reqParam;
    }

    public OperationLog setReqParam(String reqParam) {
        this.reqParam = reqParam;
        return this;
    }

    public Object getResp() {
        return resp;
    }

    public OperationLog setResp(Object resp) {
        this.resp = resp;
        return this;
    }
}